package com.acme.bankapp.domain.bank;

import java.util.Comparator;

public class AccountComparator implements Comparator<Account>{
	public int compare(Account a, Account b) {
		if (a.maximumAmountToWithdraw() > b.maximumAmountToWithdraw()) {
			return -1;
		} else if (a.maximumAmountToWithdraw() < b.maximumAmountToWithdraw()) {
			return 1;
		} else {
			return 0;
		}

	}

}
